package InnerClass.InnerClassDemo005;

/**
 * ClassName:Outer
 * Package:InnerClass.InnerClassDemo005
 * Description:
 *
 * @Author:ZhangXin
 * @Create2023/1/26-1:38
 * @Version:v1.0
 */
public class Outer {
    int a = 10;
    static int b = 20;

    //静态内部类
    static class Inner {

        public void show1() {
//            Outer o = new Outer();
//            System.out.println(o.a);
            System.out.println("非静态的方法被调用了");
        }

        public static void show2() {
            System.out.println("静态的方法被调用了");
//            Outer o = new Outer();
//            System.out.println(o.a);
//            System.out.println(b);
        }
    }
}
